package com.finesys.backend.user.mapper;


import com.finesys.backend.common.model.user.UserModel;
import org.apache.ibatis.annotations.Mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
	//@Select("select id, password from sys_user where username=#{username}")
    UserModel findUserByUserName(@Param("username") String username);

	UserModel getUserByUsernameAndPassword(String username, String password);

	UserModel getUserById(String id);

	UserModel login(String username, String password);

	void save(UserModel userModel);

	void update(UserModel userModel);

	void delete(String id);
	
	List<UserModel> findList();

	//查询用户数量
	long queryUserCount();
}
